libmyc.a:mymath.o
	#ar -rc libmyc.a mymath.o
	ar -rc $@ $^
%.o:%.c
	gcc -c $<

.PHONY:clean
clean:
	rm -rf *.a *.o mylibc *.tgz

.PHONY:output
output:
	mkdir mylibc
	mkdir -p ./mylibc/include
	mkdir -p ./mylibc/lib
	cp ./*.a ./mylibc/lib
	cp *.h mylibc/include
	tar czf mylibc.tgz mylibc
